#Actually a python package, not a python application.

pkg_name=xcb-proto
version=1.11
build_dir=$builds_dir_root/$pkg_name-$version
src_dir=$src_dir_root/$pkg_name-$version
url=http://xorg.freedesktop.org/releases/individual/xcb/$pkg_name-$version.tar.bz2

cd "$src_dir_root"
rm -Rf "$pkg_name-$version"
tar jxf "$pkg_name-$version.tar.bz2"

rm -Rf "$build_dir"
mkdir -p "$build_dir"
cd "$build_dir"

export CFLAGS=-O0
export PYTHON=/libexec/libxcb-python/bin/python3
#since python is for ignorant and/or moronic coders, their build system is not
#self-containable: xcb-proto is actually a python "package", not an application
#software based on python...
"$src_dir/configure"			\
	--prefix=/libexec/libxcb-python
unset PYTHON
unset CFLAGS

make

install_tmp_dir=/tmp/$pkg_name-$version
rm -Rf "$install_tmp_dir"
mkdir -p "$install_tmp_dir"
make install "DESTDIR=$install_tmp_dir"

install_dirs "$builders_dir_root/libxcb/tmp.kludge1.dirs"
install_files "$builders_dir_root/libxcb/tmp.kludge1.files" "$install_tmp_dir"

rm -Rf "$install_tmp_dir"
rm -Rf "$build_dir"
rm -Rf "$src_dir"
